package cn.gene.timeyan.pojo.pay.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 打赏信息记录
 * </p>
 *
 * @author LWG
 * @since 2022-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pms_tip")
public class Tip implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tip_id", type = IdType.AUTO)
    private Long tipId;

    /**
     * 打赏者ID
     */
    private Long userId;

    /**
     * 受打赏者ID
     */
    private Long tipUserId;

    /**
     * 打赏帖子ID
     */
    private Long tipArticleId;

    /**
     * 赞赏金额
     */
    private Integer tipValue;

    /**
     * 货币类型
     */
    private String currencyType;

    /**
     * 支付类型
     */
    private String payType;

    /**
     * 打赏时间
     */
    private Date tipTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
